package com.bestcem.xm.txtanls.grpc.service.param.keyword;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 查询关键字提及量和提及率请求参数校验类
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/11-13:44
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ListKeywordParam {

    /**
     * 文本分析项目id
     */
    @NotBlank(message = "分析项目id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "项目id格式错误")
    private String projectId;

    /**
     * 显示关键词状态，关键词屏蔽状态枚举
     *
     * @see com.bestcem.xm.txtanls.enums.IndustryKeyWordStatusEnum
     */
    @Max(value = 1L, message = "关键词状态值非法")
    private int status;

    /**
     * 文本分析字段id
     */
    private String fieldId;

    /**
     * 组织id
     */
    @NotBlank(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;


}
